/***********************************************************
 * Author: 	Brandon McKune
 * E-Mail:	bmckune.cs@gmail.com
 * Date:	September 2, 2011
 * Class:	CSc 8370 - Data Security
 * Time:	1150 - 1325
 * Smstr:	Fall 2011
 */
#ifndef FILE_HANDLER_H_
#define FILE_HANDLER_H_

#include <string>
#include "common.h"

#define BYTE	1

using namespace std;

class FileHandler{
public:
	FileHandler();
	~FileHandler();
	bool loadFile(string filename);
	char* getBuffer();
	UINT getBufferSize();
protected:
	bool closeFile();
	bool cleanBuffer();
private:
	FILE *m_pFile;
	char* m_prgBuffer;
	UINT m_ui64SizeOfFile;
};

#endif //FILE_HANDLER_H_
